﻿using System;

namespace FizzBuzz
{
    class FizzBuzz
    {
        static void Main()
        {
            Fizz();

            /*
            long outvar = 0;

            for(var i =1;i<=100;i++)
            {
                outvar += i;
                SpitRandom(i);
            }
            Console.WriteLine(outvar);
             */
        }

        private static void Fizz()
        {
            for(var i=1;i<=100; i++)
            {
                Console.WriteLine();
                if (i%15==0) 
                {
                    Console.WriteLine("Fizz - Buzz");
                }
                else if (i%5 == 0)
                {
                    Console.WriteLine("Buzz");
                }
                else if (i%3 ==0)
                {
                    Console.WriteLine("Fizz");
                }
                else
                {
                    Console.WriteLine(i);
                }
            }
        }

        static void SpitRandom(int i)
        {
            var r = new Random(i);
            Console.WriteLine("Random --> {0}", r.Next(1,4));
        }

        
        
    }
}
